package tech.wetech.admin.model.system;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;

public class Bill implements Serializable {
    /**
     * 编号
     */
    private Long id;

    @NotNull(message = "金额不能为空")
    private BigDecimal cash;

    @NotNull(message = "收支类型不能为空")
    private String ptype;

    @NotNull(message = "付款事由不能为空")
    private String reason;

    @NotNull(message = "付款方式不能为空")
    private String payment;

    @NotNull(message = "姓名不能为空")
    private String name;

    @NotNull(message = "关系不能为空")
    private String relationship;

    @NotNull(message = "收支日期不能为空")
    private Date pdate;

    public Bill(){

    }

    public Bill( BigDecimal cash, String ptype, String reason, String payment, String name, String relationship, Date pdate) {
        this.cash = cash;
        this.ptype = ptype;
        this.reason = reason;
        this.payment = payment;
        this.name = name;
        this.relationship = relationship;
        this.pdate = pdate;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public BigDecimal getCash() {
        return cash;
    }

    public void setCash(BigDecimal cash) {
        this.cash = cash;
    }

    public String getPtype() {
        return ptype;
    }

    public void setPtype(String ptype) {
        this.ptype = ptype;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getPayment() {
        return payment;
    }

    public void setPayment(String payment) {
        this.payment = payment;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRelationship() {
        return relationship;
    }

    public void setRelationship(String relationship) {
        this.relationship = relationship;
    }

    public Date getPdate() {
        return pdate;
    }

    public void setPdate(Date pdate) {
        this.pdate = pdate;
    }
}
